/**
 * 
 */
package com.skood.security.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.skood.common.dao.CommonDAO;
import com.skood.common.model.SearchModel;
import com.skood.security.domain.User;

/**
 * @author keege
 * @date 2013-9-9
 * 用户DAO接口
 */
public interface UserDAO extends CommonDAO<User>{

	public List<User> searchUsers(@Param("searchModel")SearchModel<User> searchModel,@Param("parameters")Map<String, Object> parameters);
	public Long searchUserCount(@Param("searchModel")SearchModel<User> searchModel,@Param("parameters")Map<String, Object> parameters);
	
	public void save(User user);
	public Long update(User user);
	
	/**
	 * 根据用户登录名获取用户信息
	 * @param name
	 * @return
	 */
	public User getUserByName(String name);
}
